package hspedu.learn.javabase.extendsImporve;

import cn.hutool.core.bean.BeanUtil;

public class ComputerTest {
    public static void main(String[] args) {
        PesronComputer pesronComputer = new PesronComputer();
        pesronComputer.setBrand("Asus");
        pesronComputer.setCpu("Intel");
        pesronComputer.setMemory("huawei");
        pesronComputer.setDisk("Dell");
        String details = pesronComputer.getDetails();
        System.out.println("details = " + details);
        NotePad notePad = new NotePad();
        BeanUtil.copyProperties(pesronComputer,notePad);
        notePad.setColor("Black");
        notePad.setCpu("AMD  ");
        String details1 = notePad.getDetail();
        System.out.println("details = " + details1);
    }
}
